[Top][All Lists]

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

1 is not safe, unusual PID value

From: Askar Safin
Subject: 1 is not safe, unusual PID value
Date: Sun, 25 Dec 2011 19:51:23 +0400

In jobs.c we see:

#if defined (RECYCLES_PIDS)
      if (last_asynchronous_pid == mypid)
        /* Avoid pid aliasing.  1 seems like a safe, unusual pid value. */
        last_asynchronous_pid = 1;

1 is not safe, unusual PID value, because:

1. Linux kernel sometimes start with option "init=/bin/bash"
2. Embeged systems offen have init, written in bash or /bin/sh, which is 
symlink to bash
3. Mostly all inits of initrd/initramfs written in shell, which may be symlink 
to bash

Please, fix

reply via email to

[Prev in Thread] Current Thread [Next in Thread]