diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-02-16 16:28:46 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-02-16 16:28:46 +0900 |
| commit | 33a4ab11c226c736c0d8b2644fbbe27a5ca045e9 (patch) | |
| tree | faf4e054a5ebbb02a9a99ecae6a83ec9eb993001 /internal/priv/init/early.go | |
| parent | 1fa5e992e4e73fd6f1774544e07655b88f9c83d6 (diff) | |
internal: move shim and init into app
This structure makes more sense, as both processes are part of an app's lifecycle.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/priv/init/early.go')
| -rw-r--r-- | internal/priv/init/early.go | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/internal/priv/init/early.go b/internal/priv/init/early.go deleted file mode 100644 index cc1c2f7e..00000000 --- a/internal/priv/init/early.go +++ /dev/null @@ -1,18 +0,0 @@ -package init0 - -import ( - "os" - "path" - - "git.gensokyo.uk/security/fortify/internal/fmsg" -) - -// used by the parent process - -// TryArgv0 calls [Main] if argv0 indicates the process is started from a file named "init". -func TryArgv0() { - if len(os.Args) > 0 && path.Base(os.Args[0]) == "init" { - Main() - fmsg.Exit(0) - } -} |
