mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
slave: emit user-notifications before dup:ing stdin/stdout/stderr
Since we need to restore the status flags anyway, there's nothing to gain from emitting the user notifications after dup:ing the pts file descriptor. On the other hand, emitting user notifications *before* dup:ing means we can still print error messages for e.g. write(3) errors.
This commit is contained in:
parent
7e93405b1a
commit
c8e78674ed
2 changed files with 54 additions and 49 deletions
|
|
@ -2,12 +2,14 @@
|
|||
|
||||
#include <tllist.h>
|
||||
|
||||
enum user_notification_kind {
|
||||
USER_NOTIFICATION_DEPRECATED,
|
||||
USER_NOTIFICATION_WARNING,
|
||||
USER_NOTIFICATION_ERROR,
|
||||
};
|
||||
|
||||
struct user_notification {
|
||||
enum {
|
||||
USER_NOTIFICATION_DEPRECATED,
|
||||
USER_NOTIFICATION_WARNING,
|
||||
USER_NOTIFICATION_ERROR,
|
||||
} kind;
|
||||
enum user_notification_kind kind;
|
||||
char *text;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue