diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/vlib/unix/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vlib/unix/main.c b/src/vlib/unix/main.c index 6b1a32cfee6..3991566ee01 100644 --- a/src/vlib/unix/main.c +++ b/src/vlib/unix/main.c @@ -513,6 +513,9 @@ unix_config (vlib_main_t * vm, unformat_input_t * input) if (error) return error; + if (chdir ((char *) um->runtime_dir) < 0) + return clib_error_return_unix (0, "chdir('%s')", um->runtime_dir); + error = setup_signal_handlers (um); if (error) return error; |