
from multiprocessing import Process
import os, signal, time, random


def receiveSignal(signalNumber, frame):
		tab_ext[0,0,0,0,0,0]
		for i in range (0,random.randint(1,5):
			tab_ext[random.randint(0,5)]=1
        price(prix courant,tab_ext,temperature,totaux)
				


def External():
    while True:
        i=random.randint(0,100)
        if (i==1):
            os.kill(os.getppid(), signal.SIGUSR1)


if __name__ == '__main__':
    signal.signal(signal.SIGUSR1, receiveSignal)
    child = Process(target=External ,args=())
    child.start()
