|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH] tools: fix oom setting of xenstored
On 19.10.21 08:54, Jan Beulich wrote: On 19.10.2021 06:41, Juergen Gross wrote: I don't think set -e would have a negative effect on above line. The bash man-page tells me that: The shell does not exit if the command that fails is part of the command list immediately following a while or until keyword, part of the test following the if, ... And I believe that "[ ... ]" is treated like an "if". A short test showed that bash indeed does not exit in this case: ( set -e; [ -z "" ] && xx=okay; echo $xx; ) This will print "okay", so bash didn't exit.
This would be an option, yes. Unless a maintainer wants me to send another patch with this change I'll keep it as it is now. Juergen Attachment:
OpenPGP_0xB0DE9DD628BF132F.asc Attachment:
OpenPGP_signature
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |