mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This should make it easier to rerun crashed jobs that use filelists; previously you'd have to run the top-level driver command again with -save-temps. I didn't want to save /all/ temporary files because that often includes things like .o files, which could fill up your disk pretty quickly. But we can always tweak this later.
15 lines
481 B
Python
Executable File
15 lines
481 B
Python
Executable File
#!/usr/bin/env python
|
|
# crash.py - Sends SIGKILL to self. -*- python -*-
|
|
#
|
|
# This source file is part of the Swift.org open source project
|
|
#
|
|
# Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
|
|
# Licensed under Apache License v2.0 with Runtime Library Exception
|
|
#
|
|
# See https://swift.org/LICENSE.txt for license information
|
|
# See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
|
|
|
|
import os
|
|
import signal
|
|
os.kill(os.getpid(), signal.SIGKILL)
|