Re: [PATCH v7 2/2] selftests: add tests for pidfd_send_signal()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jan 08, 2019 at 10:53:06AM -0700, Tycho Andersen wrote:
> On Wed, Jan 02, 2019 at 05:16:54PM +0100, Christian Brauner wrote:
> > +			/*
> > +			 * Stop the child so we can inspect whether we have
> > +			 * recycled pid PID_RECYCLE.
> > +			 */
> > +			close(pipe_fds[0]);
> > +			ret = kill(recycled_pid, SIGSTOP);
> > +			close(pipe_fds[1]);
> > +			if (ret) {
> > +				(void)wait_for_pid(recycled_pid);
> > +				_exit(PIDFD_ERROR);
> > +			}
> 
> Sorry for being late to the party, but I wonder if this whole thing
> couldn't be simplified with /proc/sys/kenrel/ns_last_pid?

no, bc it's not namespaced :)



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux