Date: Thu, 23 Oct 2014 02:53:58 +0000 (UTC) From: "Pedro F. Giffuni" <pfg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r273513 - stable/10/usr.sbin/lpr/lpd Message-ID: <201410230253.s9N2rwDt041067@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pfg Date: Thu Oct 23 02:53:57 2014 New Revision: 273513 URL: https://svnweb.freebsd.org/changeset/base/273513 Log: MFC r271789: lpr: replace setpgrp(2) with setpgid(2). setpgid(2) is more portable than setpgrp(2). The BSD variant of setpgrp is a wrapper for setpgid(2) anyways. Modified: stable/10/usr.sbin/lpr/lpd/printjob.c Directory Properties: stable/10/ (props changed) Modified: stable/10/usr.sbin/lpr/lpd/printjob.c ============================================================================== --- stable/10/usr.sbin/lpr/lpd/printjob.c Thu Oct 23 02:50:18 2014 (r273512) +++ stable/10/usr.sbin/lpr/lpd/printjob.c Thu Oct 23 02:53:57 2014 (r273513) @@ -176,7 +176,7 @@ printjob(struct printer *pp) } if(setgid(getegid()) != 0) err(1, "setgid() failed"); printpid = getpid(); /* for use with lprm */ - setpgrp(0, printpid); + setpgid((pid_t)0, printpid); /* * At initial lpd startup, printjob may be called with various
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410230253.s9N2rwDt041067>