The term includes all proceedings in a federal court having jurisdiction in bankruptcy, founded on a petition in bankruptcy and either directly or collaterally involved in the adjudication and discharge of the bankrupt and the collection and administration of his estate. Kidder v. Horro- bin, 72 N. Y. 167.