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

 



On Tue, Oct 08, 2013 at 02:26:53PM -0700, Ildar Muslukhov wrote:
 
 
 >  void set_seed(unsigned int pidslot)
 >  {
 > +	pid_t pid = getpid();
 > +	if ((pid != watchdog_pid) && (pid != initpid) && (pid != mainpid))

As a follow-on patch, I suggest splitting this out into an is_child_pid() helper.

	Dave
--
To unsubscribe from this list: send the line "unsubscribe trinity" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SCSI]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux