-
0 votesanswersviews
使用fork()和execvp()函数创建C程序时遇到问题
以下是我目前遇到以下问题的代码: #include <stdio.h> #include <unistd.h> #include<sys/types.h> #include<sys/wait.h> #define MAX_LINE 80 int main(void) { char *args[MAX_LINE/2+1]; int ... -
0 votesanswersviews
udev规则无法通过使用execvp的openvt生成处理程序脚本
好的,环境:Debian 9.2 . 从Debian 5升级(是的那么老) . 我们有一个用于检测USB条形码阅读器的udev规则 . 该规则使用ADD或REMOVE操作调用bash脚本,serialscanner . 该脚本反过来到达一个点并调用 openvt 切换到VT8并分叉/运行"serialscanner.handler"脚本 . serialscanner.hand...