The toolbox-cmd disk shrink operation was exiting with status 0
when a SIGINT is received. A non-zero exit status is expected.
Change the exit code to 130, which is the appropriate value
according to TLDP: https://tldp.org/LDP/abs/html/exitcodes.html
/*********************************************************
- * Copyright (C) 2008-2019 VMware, Inc. All rights reserved.
+ * Copyright (C) 2008-2020 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
#define EX_NOPERM 77 /* permission denied */
#endif
+#ifndef VM_EX_INTERRUPT
+#define VM_EX_INTERRUPT 130 /* SIGINT received */
+#endif
+
/*
* We want to have commands and arguments on Windows to be
* case-instensitive, everywhere else we expect lowercase
wiper = NULL;
}
ToolsCmd_Print("%s", SU_(disk.shrink.canceled, "Disk shrink canceled.\n"));
- exit(EXIT_SUCCESS);
+ exit(VM_EX_INTERRUPT);
}
#endif