Deleted Added
full compact
system.c (15419) system.c (15439)
1/*
2 * The new sysinstall program.
3 *
4 * This is probably the last program in the `sysinstall' line - the next
5 * generation being essentially a complete rewrite.
6 *
1/*
2 * The new sysinstall program.
3 *
4 * This is probably the last program in the `sysinstall' line - the next
5 * generation being essentially a complete rewrite.
6 *
7 * $Id: system.c,v 1.54 1996/04/28 01:07:27 jkh Exp $
7 * $Id: system.c,v 1.55 1996/04/28 03:27:26 jkh Exp $
8 *
9 * Jordan Hubbard
10 *
11 * My contributions are in the public domain.
12 *
13 * Parts of this file are also blatently stolen from Poul-Henning Kamp's
14 * previous version of sysinstall, and as such fall under his "BEERWARE license"
15 * so buy him a beer if you like it! Buy him a beer for me, too!

--- 88 unchanged lines hidden (view full) ---

104
105 dialog_update();
106 end_dialog();
107 DialogActive = FALSE;
108 if (tcgetattr(0, &foo) != -1) {
109 foo.c_cc[VERASE] = '\010';
110 tcsetattr(0, TCSANOW, &foo);
111 }
8 *
9 * Jordan Hubbard
10 *
11 * My contributions are in the public domain.
12 *
13 * Parts of this file are also blatently stolen from Poul-Henning Kamp's
14 * previous version of sysinstall, and as such fall under his "BEERWARE license"
15 * so buy him a beer if you like it! Buy him a beer for me, too!

--- 88 unchanged lines hidden (view full) ---

104
105 dialog_update();
106 end_dialog();
107 DialogActive = FALSE;
108 if (tcgetattr(0, &foo) != -1) {
109 foo.c_cc[VERASE] = '\010';
110 tcsetattr(0, TCSANOW, &foo);
111 }
112 status = system(command);
112 if (!Fake)
113 status = system(command);
114 else {
115 status = 0;
116 msgDebug("systemExecute: Faked execution of `%s'\n", command);
117 }
113 DialogActive = TRUE;
114 return status;
115}
116
117/* Display a help file in a filebox */
118int
119systemDisplayHelp(char *file)
120{

--- 73 unchanged lines hidden (view full) ---

194
195 cmd = (char *)alloca(FILENAME_MAX);
196 cmd[0] = '\0';
197 va_start(args, fmt);
198 vsnprintf(cmd, FILENAME_MAX, fmt, args);
199 va_end(args);
200
201 omask = sigblock(sigmask(SIGCHLD));
118 DialogActive = TRUE;
119 return status;
120}
121
122/* Display a help file in a filebox */
123int
124systemDisplayHelp(char *file)
125{

--- 73 unchanged lines hidden (view full) ---

199
200 cmd = (char *)alloca(FILENAME_MAX);
201 cmd[0] = '\0';
202 va_start(args, fmt);
203 vsnprintf(cmd, FILENAME_MAX, fmt, args);
204 va_end(args);
205
206 omask = sigblock(sigmask(SIGCHLD));
207 if (Fake) {
208 msgDebug("vsystem: Faked execution of `%s'\n", cmd);
209 return 0;
210 }
202 if (isDebug())
203 msgDebug("Executing command `%s'\n", cmd);
204 pid = fork();
205 if (pid == -1) {
206 (void)sigsetmask(omask);
207 i = 127;
208 }
209 else if (!pid) { /* Junior */

--- 65 unchanged lines hidden ---
211 if (isDebug())
212 msgDebug("Executing command `%s'\n", cmd);
213 pid = fork();
214 if (pid == -1) {
215 (void)sigsetmask(omask);
216 i = 127;
217 }
218 else if (!pid) { /* Junior */

--- 65 unchanged lines hidden ---