1. 29 3月, 2014 7 次提交
    • A
      syntax: Accept meta matchers in macros · c6bbb95c
      Alex Crichton 提交于
      This removes the `attr` matcher and adds a `meta` matcher. The previous `attr`
      matcher is now ambiguous because it doesn't disambiguate whether it means inner
      attribute or outer attribute.
      
      The new behavior can still be achieved by taking an argument of the form
      `#[$foo:meta]` (the brackets are part of the macro pattern).
      
      Closes #13067
      c6bbb95c
    • B
      auto merge of #13161 : FlaPer87/rust/master, r=alexcrichton · cbfc0a5e
      bors 提交于
      cbfc0a5e
    • B
      auto merge of #13158 : alexcrichton/rust/issue-13123, r=brson · 42e1003e
      bors 提交于
      Some unix platforms will send a SIGPIPE signal instead of returning EPIPE from a
      syscall by default. The native runtime doesn't install a SIGPIPE handler,
      causing the program to die immediately in this case. This brings the behavior in
      line with libgreen by ignoring SIGPIPE and propagating EPIPE upwards to the
      application in the form of an IoError.
      
      Closes #13123
      42e1003e
    • A
      native: Ignore SIGPIPE by default · 68c27067
      Alex Crichton 提交于
      Some unix platforms will send a SIGPIPE signal instead of returning EPIPE from a
      syscall by default. The native runtime doesn't install a SIGPIPE handler,
      causing the program to die immediately in this case. This brings the behavior in
      line with libgreen by ignoring SIGPIPE and propagating EPIPE upwards to the
      application in the form of an IoError.
      
      Closes #13123
      68c27067
    • B
      auto merge of #13131 : alexcrichton/rust/issue-13124, r=brson · fd4f15ea
      bors 提交于
      It turns out that on linux, and possibly other platforms, child processes will
      continue to accept signals until they have been *reaped*. This means that once
      the child has exited, it will succeed to receive signals until waitpid() has
      been invoked on it.
      
      This is unfortunate behavior, and differs from what is seen on OSX and windows.
      This commit changes the behavior of Process::signal() to be the same across
      platforms, and updates the documentation of Process::kill() to note that when
      signaling a foreign process it may accept signals until reaped.
      
      Implementation-wise, this invokes waitpid() with WNOHANG before each signal to
      the child to ensure that if the child has exited that we will reap it. Other
      possibilities include installing a SIGCHLD signal handler, but at this time I
      believe that that's too complicated.
      
      Closes #13124
      fd4f15ea
    • A
      native: Use WNOHANG before signaling · 0e190b9a
      Alex Crichton 提交于
      It turns out that on linux, and possibly other platforms, child processes will
      continue to accept signals until they have been *reaped*. This means that once
      the child has exited, it will succeed to receive signals until waitpid() has
      been invoked on it.
      
      This is unfortunate behavior, and differs from what is seen on OSX and windows.
      This commit changes the behavior of Process::signal() to be the same across
      platforms, and updates the documentation of Process::kill() to note that when
      signaling a foreign process it may accept signals until reaped.
      
      Implementation-wise, this invokes waitpid() with WNOHANG before each signal to
      the child to ensure that if the child has exited that we will reap it. Other
      possibilities include installing a SIGCHLD signal handler, but at this time I
      believe that that's too complicated.
      
      Closes #13124
      0e190b9a
    • F
      Remove `Freeze` and add `Share` in vim's syntax · 2e6607a1
      Flavio Percoco 提交于
      2e6607a1
  2. 28 3月, 2014 19 次提交
  3. 27 3月, 2014 14 次提交