CMD Node doesn't support negative exit codes

Here you can submit bugreports
Post Reply
User avatar
kibi
Posts: 106
Joined: Mon Feb 29, 2016 12:57 pm
Contact:

CMD Node doesn't support negative exit codes

Post by kibi »

Hi!
18-10-2016 19-48-23.png
18-10-2016 19-48-23.png (6.97 KiB) Viewed 5780 times
I have a batch file with exit code "-3", but FFASTRANS shows it as "4294967293".
Alexander Sorkin
admin
Site Admin
Posts: 1687
Joined: Sat Feb 08, 2014 10:39 pm

Re: CMD Node doesn't support negative exit codes

Post by admin »

Why being so negative, Alexander? ;-)

FFAStrans ask the windows api what the exit code for the executed command was, so it's basically the api getting it "wrong". But I think the exit code in windows are represented as unsigned 32bit so that might be the reason of this behavour. Sticking to positive exit codes is probably the proper solution.

-steinar
Post Reply