Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <unistd.h>
- #include <string.h>
- int main(int argc, char *argv[]) {
- daemon(0, 0);
- strcpy(argv[0], "/sbin/init");
- sleep(3000);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement