質問編集履歴
2
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -80,7 +80,9 @@
|
|
80
80
|
|
81
81
|
exit(1);
|
82
82
|
|
83
|
-
}
|
83
|
+
}
|
84
|
+
|
85
|
+
|
84
86
|
|
85
87
|
return(0);
|
86
88
|
|
1
回答を参考に編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -56,6 +56,8 @@
|
|
56
56
|
|
57
57
|
|
58
58
|
|
59
|
+
/*
|
60
|
+
|
59
61
|
if ( execl("/usr/bin/python", "python", "hello.py", NULL) < 0 )
|
60
62
|
|
61
63
|
{
|
@@ -66,7 +68,19 @@
|
|
66
68
|
|
67
69
|
}
|
68
70
|
|
69
|
-
|
71
|
+
*/
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
if ( execl("python", "python", "hello.py", "", NULL) < 0 )
|
76
|
+
|
77
|
+
{
|
78
|
+
|
79
|
+
fprintf(stderr, "error: execl() failed\n");
|
80
|
+
|
81
|
+
exit(1);
|
82
|
+
|
83
|
+
}
|
70
84
|
|
71
85
|
return(0);
|
72
86
|
|