/sendmail/contrib/ |
H A D | smcontrol.pl | 209 my $pid; 211 if ($pid = fork) 215 waitpid $pid, 0 or return "Could not get status of created process: $!\n"; 222 elsif (defined $pid)
|
/sendmail/libsm/ |
H A D | t-shm.c | 239 pid_t pid; local 242 if ((pid = fork()) < 0) 249 if (pid == 0)
|
H A D | t-sem.c | 363 pid_t pid; local 369 if ((pid = fork()) < 0) 376 if (pid == 0)
|
H A D | clock.c | 399 pid_t pid; local 408 pid = ev->ev_pid; 413 if (pid != getpid())
|
/sendmail/sendmail/ |
H A D | util.c | 563 ** LOG_SENDMAIL_PID -- record sendmail pid and command line. 586 /* write the pid to the log file for posterity */ 596 "unable to write pid to %s: file in use by another process", 600 "unable to write pid to %s: %s", 619 ** Leave pid file open until process ends 629 ** CLOSE_SENDMAIL_PID -- close sendmail pid file 2015 ** pid of the process -- -1 if it failed. 2024 pid_t pid; local 2038 pid = fork(); 2039 if (pid < 2691 pid_t pid; local [all...] |
H A D | queue.c | 201 ** pid -- pid of owner, should be a unique id to avoid misinterpretations 1942 pid_t pid; local 1947 pid = dofork(); 1948 if (pid == -1) 1961 if (pid != 0) 1967 proc_list_add(pid, "Queue runner", PROC_QUEUE, 2109 "runqueue %s, pid=%d, forkflag=%d", 2148 pid_t pid; local 2186 pid 3568 register pid_t pid; local 3755 register pid_t pid; local 5385 pid_t pid = queuenextid(); local [all...] |
H A D | deliver.c | 79 pid_t pid; local 637 pid = fork(); 638 if (pid < 0) 650 else if (pid > 0) 674 (void) waitfor(pid); 703 pid = fork(); 704 if (pid > 0) 716 if (pid < 0) 1063 ** Modifies the ==> LOCAL <== variable 'pid', leaving: 1064 ** pid o 1109 register pid_t pid = -1; local 1311 volatile pid_t pid = -1; local 5113 register pid_t pid = -1; local [all...] |
H A D | main.c | 100 char *CommandLineArgs; /* command line args for pid file */ 122 #define PIDLEN 6 /* pid length for computing SyslogPrefixLen */ 2180 pid_t pid = -1; local 2196 if (Verbose || foregroundqueue || (pid = fork()) <= 0) 2205 if (pid == 0) 2431 ** Write the pid to file 2432 ** XXX Overwrites sendmail.pid 2494 "persistent queue runner=%d died, pid=%ld, signal=%d", 2525 ** Write the pid to file 2526 ** XXX Overwrites sendmail.pid 2950 pid_t pid; local [all...] |
H A D | daemon.c | 184 /* write the pid to file, command line args to syslog */ 209 register pid_t pid; local 620 pid = 0; 636 pid = fork(); 637 if (pid < 0) 652 if (pid == 0) 901 proc_list_add(pid, status, PROC_CONTROL, 0, -1, NULL); 908 proc_list_add(pid, status, PROC_DAEMON, 0, -1, 3137 /* close locked pid file */
|
H A D | usersmtp.c | 726 pid_t pid; local 758 pid = prog_open(argv, &fd, CurEnv); 759 if (pid < 0) 768 pid = -1; 816 if (pid > 0) 817 (void) waitfor(pid);
|
H A D | conf.c | 2650 ** pid -- process id to wait for. 2653 ** status of pid. 2654 ** -1 if pid never shows up. 2661 waitfor(pid) 2662 pid_t pid; 2673 } while ((i >= 0 || errno == EINTR) && i != pid); 2685 ** pid 2742 pid_t pid; local 2748 while ((pid = waitpid(-1, &status, WNOHANG)) > 0) 2757 while ((pid [all...] |
H A D | readcf.c | 946 pid_t pid; local 1113 pid = prog_open(argv, &fd, CurEnv); 1114 if (pid < 0) 1122 pid = -1; 1170 if (pid > 0) 1171 (void) waitfor(pid);
|
H A D | map.c | 592 ** CLOSEMAPS -- close all open maps opened by the current pid. 608 ** MAP_CLOSE -- close a map opened by the current pid. 6315 auto pid_t pid; local 6347 pid = prog_open(argv, &fd, CurEnv); 6348 if (pid < 0) 6394 status = waitfor(pid); 7917 sm_dprintf("socket_map_close(%s), pid=%ld\n", map->map_file,
|
/sendmail/rmail/ |
H A D | rmail.c | 95 int ch, debug, i, pdes[2], pid, status; local 354 switch (pid = fork()) 390 if ((waitpid(pid, &status, 0)) == -1)
|
/sendmail/mail.local/ |
H A D | mail.local.c | 1448 case L_TMPWRITE: /* Can't write pid into lockfile */ 1504 /* defeat lock checking programs which test pid */ 1878 unsigned int pid; local 1880 pid = getpid(); 1884 *trv = (pid % 10) + '0'; 1885 pid /= 10;
|