Skip to content

nmsgtool -w leaves temporary file behind upon failed start - #196

Open
rafaelvanoni wants to merge 2 commits into
nextfrom
nmsgtool-w-file
Open

nmsgtool -w leaves temporary file behind upon failed start#196
rafaelvanoni wants to merge 2 commits into
nextfrom
nmsgtool-w-file

Conversation

@rafaelvanoni

@rafaelvanoni rafaelvanoni commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

This PR proposes a fix to keep nmsgtool(1) from leaving temporary files behind in case of a failed start. For example:

$ ./src/nmsgtool -w foo -C ch25
bind: Cannot assign requested address
$ file foo
foo: empty

The proposed fix moves the arg parsing of -w foo to after channel validation.

@rafaelvanoni rafaelvanoni self-assigned this Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant