diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2018-12-16 20:10:20 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-16 20:10:20 -0500 |
| commit | edbc788d2063cb0ba19487234f53f90aba347975 (patch) | |
| tree | e1164ddb28519f11e9cd246a43a0a887d5a2acd6 /st.c | |
| parent | ee16dfb8f38f159011a1c45e8c6ba4b39e267bc9 (diff) | |
| parent | 7a1a92ff3f331047245837ddd055298ceb013a62 (diff) | |
Merge pull request #31 from terriblephrases/master
Upstream updates
Diffstat (limited to 'st.c')
| -rw-r--r-- | st.c | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -738,8 +738,10 @@ sigchld(int a) if (pid != p) return; - if (!WIFEXITED(stat) || WEXITSTATUS(stat)) - die("child finished with error '%d'\n", stat); + if (WIFEXITED(stat) && WEXITSTATUS(stat)) + die("child exited with status %d\n", WEXITSTATUS(stat)); + else if (WIFSIGNALED(stat)) + die("child terminated due to signal %d\n", WTERMSIG(stat)); exit(0); } @@ -1504,7 +1506,8 @@ tsetattr(int *attr, int l) } else { fprintf(stderr, "erresc(default): gfx attr %d unknown\n", - attr[i]), csidump(); + attr[i]); + csidump(); } break; } @@ -2388,7 +2391,7 @@ eschandle(uchar ascii) case 'Z': /* DECID -- Identify Terminal */ ttywrite(vtiden, strlen(vtiden), 0); break; - case 'c': /* RIS -- Reset to inital state */ + case 'c': /* RIS -- Reset to initial state */ treset(); resettitle(); xloadcols(); |
