📄 setpgrp.c
字号:
/* @(#)setpgrp.c 1.1 92/07/30 SMI *//* Copyright (c) 1984 AT&T *//* All Rights Reserved *//* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T *//* The copyright notice above does not evidence any *//* actual or intended publication of such source code. */#ident "@(#)setpgrp:setpgrp.c 1.2"/* Set process group ID to this process ID and exec the command line that is the argument list.*/#include <stdio.h>main( argc, argv )int argc;char *argv[];{ char *cmd; cmd = *argv; if( argc <= 1 ) { fprintf( stderr, "Usage: %s command [ arg ... ]\n", cmd ); exit(1); } argv++; argc--; setpgrp(); execvp( *argv, argv ); fprintf( stderr, "%s: %s not executed. ", cmd, *argv ); perror( "" ); exit( 1 ); /* NOTREACHED */}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -