X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=st.c;h=b042be2039b8ddc3a4121e09f23c865c89581fba;hb=742a41d6554ce1848f45ea89cb83d62c7e881352;hp=8e51344555db4ef5f2d1c3c4d4f0e07875209fa0;hpb=f36dd277a2e71e99624fe26365757242d56259c0;p=st.git diff --git a/st.c b/st.c index 8e51344..b042be2 100644 --- a/st.c +++ b/st.c @@ -1276,7 +1276,8 @@ stty(void) siz-= n + 1; } *q = '\0'; - system(cmd); + if (system(cmd) != 0) + perror("Couldn't call stty"); } void