[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: attribute warn_unused_result
From: |
Paul Eggert |
Subject: |
Re: attribute warn_unused_result |
Date: |
Sat, 05 Feb 2011 23:04:04 -0800 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 |
On 02/05/2011 08:07 PM, Eli Zaretskii wrote:
> MS-Windows already works with lib/ignore-value.h (your change in
> sysdep.c already used it). So there's no need to use #ifndef DOS_NT
> in this case.
I don't see how the following patch could possibly work on Windows.
Although it would compile, surely it would break things badly if
the call to chdir () fails on Windows. Have you tested it for
that case?
=== modified file 'src/sysdep.c'
--- src/sysdep.c 2011-02-06 01:25:41 +0000
+++ src/sysdep.c 2011-02-06 06:57:13 +0000
@@ -550,10 +550,8 @@ sys_subshell (void)
/* Use our buffer's default directory for the subshell. */
if (str && chdir ((char *) str) != 0)
{
-#ifndef DOS_NT
ignore_value (write (1, "Can't chdir\n", 12));
_exit (1);
-#endif
}
close_process_descs (); /* Close Emacs's pipes/ptys */
- Re: attribute warn_unused_result, (continued)
- Re: attribute warn_unused_result, Eli Zaretskii, 2011/02/03
- Re: attribute warn_unused_result, Paul Eggert, 2011/02/03
- Re: attribute warn_unused_result, Eli Zaretskii, 2011/02/04
- Re: attribute warn_unused_result, Tom Tromey, 2011/02/04
- Re: attribute warn_unused_result, Eli Zaretskii, 2011/02/04
- Re: attribute warn_unused_result, Tom Tromey, 2011/02/04
- Re: attribute warn_unused_result, Paul Eggert, 2011/02/04
- Re: attribute warn_unused_result, Eli Zaretskii, 2011/02/05
- Message not available
- Re: attribute warn_unused_result, Paul Eggert, 2011/02/05
- Re: attribute warn_unused_result, Eli Zaretskii, 2011/02/05
- Re: attribute warn_unused_result,
Paul Eggert <=
- Re: attribute warn_unused_result, Eli Zaretskii, 2011/02/06
- Re: attribute warn_unused_result, Paul Eggert, 2011/02/06
- Re: attribute warn_unused_result, Eli Zaretskii, 2011/02/06
- Re: attribute warn_unused_result, Paul Eggert, 2011/02/06
- Re: attribute warn_unused_result, Eli Zaretskii, 2011/02/06
- Re: attribute warn_unused_result, Stefan Monnier, 2011/02/04
- Re: attribute warn_unused_result, Eli Zaretskii, 2011/02/05
- Re: attribute warn_unused_result, Stefan Monnier, 2011/02/05