nohup.c (82725ba9bf1fd59746a4006a06f24d4d61d142f2) | nohup.c (1a7ac2bd24c1763b0d32e23d9c70308fbc24b07a) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-3-Clause 3 * 4 * Copyright (c) 1989, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 42 unchanged lines hidden (view full) --- 51#include <fcntl.h> 52#include <signal.h> 53#include <stdio.h> 54#include <stdlib.h> 55#include <string.h> 56#include <unistd.h> 57 58static void dofile(void); | 1/*- 2 * SPDX-License-Identifier: BSD-3-Clause 3 * 4 * Copyright (c) 1989, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 42 unchanged lines hidden (view full) --- 51#include <fcntl.h> 52#include <signal.h> 53#include <stdio.h> 54#include <stdlib.h> 55#include <string.h> 56#include <unistd.h> 57 58static void dofile(void); |
59static void usage(void); | 59static void usage(void) __dead2; |
60 61#define FILENAME "nohup.out" 62/* 63 * POSIX mandates that we exit with: 64 * 126 - If the utility was found, but failed to execute. 65 * 127 - If any other error occurred. 66 */ 67#define EXIT_NOEXEC 126 --- 68 unchanged lines hidden --- | 60 61#define FILENAME "nohup.out" 62/* 63 * POSIX mandates that we exit with: 64 * 126 - If the utility was found, but failed to execute. 65 * 127 - If any other error occurred. 66 */ 67#define EXIT_NOEXEC 126 --- 68 unchanged lines hidden --- |