mirror of
https://github.com/troglobit/finit.git
synced 2026-10-25 12:04:36 +00:00
tty.c: Free memory for external getty on tty_unregister()
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
74affb32d3
commit
f7b9b7be96
2 files changed
+15
-3
No files matched your search
@@ -28,6 +28,7 @@
|
||||
#include <limits.h>
|
||||
#include <lite/queue.h> /* BSD sys/queue.h API */
|
||||
|
||||
#define TTY_MAX_ARGS 16
|
||||
#define EVENT_SIZE ((sizeof(struct inotify_event) + NAME_MAX + 1))
|
||||
|
||||
typedef struct {
|
||||
@@ -38,7 +39,7 @@ typedef struct {
|
||||
int runlevels;
|
||||
|
||||
char *cmd; /* NULL when running built-in getty */
|
||||
char *args[10];
|
||||
char *args[TTY_MAX_ARGS];
|
||||
|
||||
int pid;
|
||||
} finit_tty_t;
|
||||
|
||||
Reference in new issue
Block a user